package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domain.Orders;
import com.itheima.dto.OrdersDto;

public interface OrderService extends IService<Orders> {

    //用户下单接口
    void submit(Orders orders);

    //历史订单查询接口
    Page<OrdersDto> findByPage(Integer page, Integer pageSize);

    //订单明细接口
    Page<OrdersDto> selectByPage(Integer page, Integer pageSize, String name);
}